<template>
  <div class="student">
    <h3>学生姓名:{{ name }}</h3>
    <h3 class="aaa">性别：{{ sex }}</h3>
  </div>
</template>

<script>
// 局部混合
export default {
  name: "Student",
  data() {
    return { name: "张三", sex: "男" };
  },
};
</script>

<style scoped>
.student {
  background-color: skyblue;
}
</style>